<template>
  <div class="page select-location-page">
    <search-bar />
    <geolocation />
    <history-address />
    <bw-button
      class="add-btn"
      @click="gotoCreate"
    >
      添加地址
    </bw-button>
  </div>
</template>

<script>
import SearchBar from './components/SearchBar'
import Geolocation from './components/Geolocation'
import HistoryAddress from './components/HistoryAddress'

export default {
  name: 'SelectLocation',
  components: {
    SearchBar,
    Geolocation,
    HistoryAddress
  },
  methods: {
    gotoCreate () {
      this.$router.push({
        path: '/edit/address'
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.add-btn {
  position: fixed;
  bottom: 0;
}
</style>
